import React, { Component, PropTypes } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import styles from './IndexPage.less';

import Mask from '../components/Mask';

function IndexPage({mask,children}){
    const {maskContent} = mask;
    return(
        <div className="normal">
            {children}
            <Mask>
              {maskContent}
            </Mask>
        </div>
    )
}

function mapStateToProps({ mask }) {
  return { mask };
}

export default connect(mapStateToProps)(IndexPage);
